//
//  ReliefAwareness.swift
//  HIextractLicve
//
//  Created by HIextractLicve on 2024/12/3.
//

import UIKit
import ProgressHUD
class ReliefAwareness: UIViewController {
    var mindfulness:Set<Int>?
    var suggestion:Set<String>?
    var  professionals:Set<CGFloat>?
    var exchangeHTLC:[String:Array<Dictionary<String,String>>]?

    var eachVioViewHTLC:THLCNOrBUTTOn?
    var mindfulnessPageHTL:THLCNPageControll?
    var journeyHTLC:UIView?

    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        var huihuo = 43
        huihuo += 1
        var pagenorHTLC = 23
        pagenorHTLC -= 2
        let community:Set<Int> = [huihuo,pagenorHTLC]
        if self.navigationController?.navigationBar.isHidden == true {
            journeyHTLC?.alpha = 1
            journeyHTLC?.layer.cornerRadius = 12
        }
        journeyHTLC?.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)

        eachVioViewHTLC = THLCNOrBUTTOn.init()
        eachVioViewHTLC?.setTitle("anchors", for: .normal)
        if journeyHTLC != nil {
            journeyHTLC?.addSubview(eachVioViewHTLC ?? THLCNOrBUTTOn.init())
            view.addSubview(journeyHTLC!)
        }

        mindfulnessPageHTL = THLCNPageControll()
        mindfulnessPageHTL?.numberOfPages = 1
        mindfulnessPageHTL?.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        mindfulnessPageHTL?.tintColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        mindfulnessPageHTL?.sizeToFit()

        if journeyHTLC != nil {
            journeyHTLC?.addSubview(mindfulnessPageHTL ?? THLCNPageControll.init())
           
        }
        if ConsciousBreathing.agreenELUHTL == false && ConsciousBreathing.showedELUHTL == false{
            
            let hikai = IntrospectionGuide.init(stressdescHTL: community, HtlPoiu: 0)
           
            self.navigationController?.pushViewController(hikai, animated: true)
           
            ConsciousBreathing.showedELUHTL = true
        }
        
         
        agdeffHTL?.isSelected = ConsciousBreathing.agreenELUHTL
    }
  
    
    
    @IBOutlet weak var agdeffHTL: UIButton!
    
  
    @IBAction func emaiklHTlClikc(_ sender: UIButton) {
      
     
        if ConsciousBreathing.agreenELUHTL == false{
            ProgressHUD.banner(HTLROOOMMeasg.BinrwetioBase64("QSBwcm9tcHQgbWVzc2FnZQ=="),HTLROOOMMeasg.BinrwetioBase64("UmVhZCBhbmQgYWdyZWUgdG8gdGhlIHRlcm1zIG9mIHVzZSBhbmQgcHJpdmFjeSBhdCBmaXJzdCE=") , delay: 2.0)
           
            return
        }
        
            navigationController?.pushViewController(SoothingBreathCleansing.init(), animated: true)
          
       
        
    }
    
    
    @IBAction func tourstlHTlClikc(_ sender: UIButton) {
      
     
       
        if ConsciousBreathing.agreenELUHTL == false{
            ProgressHUD.banner(HTLROOOMMeasg.BinrwetioBase64("QSBwcm9tcHQgbWVzc2FnZQ=="), HTLROOOMMeasg.BinrwetioBase64("UmVhZCBhbmQgYWdyZWUgdG8gdGhlIHRlcm1zIG9mIHVzZSBhbmQgcHJpdmFjeSBhdCBmaXJzdCE="), delay: 2.0)
            return
        }
       
            ProgressHUD.animate("log in...")
     
      
        
        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1.5, execute: DispatchWorkItem(block: {
           
          
            HTLCAllDealRelaxing.Relaxing.signStatusHTL = true

            let customized = "1customized0".components(separatedBy: "customized")
            HTLCAllDealRelaxing.Relaxing.signinUserDataHTL["HTLCcoin"] = customized[1]
          
            
            HTLCAllDealRelaxing.Relaxing.signinUserDataHTL["HTLCemail"] = HTLROOOMMeasg.BinrwetioBase64("bG9nIGluIHdpdGggR3Vlc3Q=")
           
                HTLCAllDealRelaxing.Relaxing.signinUserDataHTL["HTLCborn"] = HTLROOOMMeasg.BinrwetioBase64("TlVMTA==")
                
                HTLCAllDealRelaxing.Relaxing.signinUserDataHTL["natureImmersion"] = "111222"
           
           
            HTLCAllDealRelaxing.Relaxing.signinUserDataHTL["HTLCkiName"] = HTLROOOMMeasg.BinrwetioBase64("R3Vlc3Q=")
            
            var huihuo = 43
            huihuo += 1
            var pagenorHTLC = 23
            pagenorHTLC -= 2
            let community:Set<Int> = [huihuo,pagenorHTLC]
            
            HTLCAllDealRelaxing.Relaxing.showingHTLimgHead = UIImage(named:"defaullltericon")
            
            let kaoiVCmain = HTLCBardecompression.init()
            kaoiVCmain.mindfulnessKAobri = community
            ((UIApplication.shared.delegate) as? AppDelegate)?.window?.rootViewController =  kaoiVCmain
           
            ProgressHUD.banner(HTLROOOMMeasg.BinrwetioBase64("V2VsY29tZSxHdWVzdCE="), HTLROOOMMeasg.BinrwetioBase64("TG9naW4gc3VjY2Vzc2Z1bA=="), delay: 2.0)
          
        }))
        
    }
    
    
    @IBAction func agreenlHTlClikc(_ sender: UIButton) {
      
            sender.isSelected = !sender.isSelected
            ConsciousBreathing.agreenELUHTL = sender.isSelected
        
        
        
    }
    
}
